home *** CD-ROM | disk | FTP | other *** search
- on renseigne texte1, texte2, texte3, stile, nCurs
- set the visible of sprite 4 to 0
- set the visible of sprite 44 to 0
- set the visible of sprite 45 to 0
- updateStage()
- set the textStyle of field "ZI3" to "plain"
- set the textStyle of field "ZI3" to stile
- set the text of cast "ZI1" to texte1
- set the text of cast "ZI2" to texte2
- set the text of cast "ZI3" to texte3
- set the visible of sprite 4 to 1
- set the visible of sprite 44 to 1
- set the visible of sprite 45 to 1
- curseur(nCurs)
- updateStage()
- end
-
- on exitFrame
- global g1erSprNav, gLocLabel
- if gLocLabel <> "SU:RN FA" then
- curseur(6)
- repeat with i = g1erSprNav + 2 to g1erSprNav + 4
- set the visible of sprite i to 1
- end repeat
- end if
- zut()
- go(label(gLocLabel))
- end
-
- on zut
- global gBarChron, gSurvolAct, gSurvolPrec, gListSuj, gMessDef1, gMaxBoutons, gEtaSpir, gMessSty1, g1erSprChr, g1erSprNav, g1erSprLoc, gListCod, gEtudAct, gLocLabel, gLabel, gVide, gTraduit
- if not (the mouseDown) then
- set MsCast to the mouseCast
- if MsCast > -1 then
- if not gEtaSpir then
- set gSurvolAct to 0
- repeat with monSpr = g1erSprChr to gMaxBoutons
- if rollOver(monSpr) then
- set gSurvolAct to monSpr
- exit repeat
- end if
- end repeat
- if gSurvolAct <> gSurvolPrec then
- if gSurvolAct <> 0 then
- if (gSurvolAct >= g1erSprChr) and (gSurvolAct <= (g1erSprChr + 9)) then
- renseigne(" ", " ", " ", "bold", 1)
- gBarChron(survol, gSurvolAct, the number of cast "ZI3")
- end if
- if gSurvolAct = g1erSprNav then
- renseigne(" ", " ", getAt(gTraduit, 12), "bold", 7)
- end if
- if gSurvolAct = (g1erSprNav + 1) then
- renseigne(" ", " ", getAt(gTraduit, 26) && getAt(gTraduit, 3), "bold", 7)
- end if
- if gSurvolAct = (g1erSprNav + 5) then
- renseigne(" ", " ", getAt(gTraduit, 27), "bold", 1)
- end if
- if gSurvolAct = (g1erSprNav + 6) then
- renseigne(" ", " ", getAt(gTraduit, 29), "bold", 7)
- end if
- if (gSurvolAct >= g1erSprLoc) and (gSurvolAct <= gMaxBoutons) then
- set the visible of sprite 4 to 0
- set the visible of sprite 44 to 0
- set the visible of sprite 45 to 0
- updateStage()
- set monNum to gSurvolAct - g1erSprLoc + 1
- put ">>" && monNum
- set monSuj to getAt(gListSuj, monNum)
- Affiche_Date(monSuj, "ZI1", "ZI2", "ZI3", 1)
- if monNum = 18 then
- curseur(1)
- else
- curseur(7)
- end if
- set the visible of sprite 4 to 1
- set the visible of sprite 44 to 1
- set the visible of sprite 45 to 1
- updateStage()
- end if
- else
- renseigne(" ", " ", gMessDef1, gMessSty1, -1)
- gBarChron(fleche, 0, 1, 1)
- end if
- set gSurvolPrec to gSurvolAct
- updateStage()
- end if
- else
- if MsCast > 0 then
- if the number of words in the name of cast MsCast = 2 then
- if (word 2 of the name of cast MsCast = "1") or (word 2 of the name of cast MsCast = "0") then
- curseur(1)
- else
- curseur(-1)
- end if
- else
- curseur(-1)
- end if
- end if
- end if
- else
- gBarChron(fleche, 0, 1, 1)
- renseigne(" ", " ", gMessDef1, gMessSty1, -1)
- end if
- end if
- updateStage()
- end
-